package com.hmall.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.user.pojo.Address;

import java.util.List;

public interface AddressMapper extends BaseMapper<Address> {

    List<Address> queryByUserId(Long userId);

    Address getById(Long id);

    void addAddress(Address address);

    void deleteById(Long id);

    void update(Address address);
}